import Head from 'next/head';

type Props = {
  title?: string;
  description?: string;
};

const Page: React.FC<Props> = ({
  title = '文档',
  description = '文档平台',
  children,
}) => {
  return (
    <>
      <Head>
        <title>{title}</title>
        <meta name="description" content={description} />
        <link rel="icon" href="/favicon.ico" />
      </Head>
      {children}
    </>
  );
};

export default Page;
